# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-text-iconv
pkgver=1.7
pkgrel=22
pkgdesc="Interface to iconv codeset conversion"
arch=('x86_64')
url="https://search.cpan.org/dist/Text-Iconv/"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/M/MP/MPIOTR/Text-Iconv-$pkgver.tar.gz") 
sha256sums=('5b80b7d5e709d34393bcba88971864a17b44a5bf0f9e4bcee383d029e7d2d5c3')

build() {
  cd Text-Iconv-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Text-Iconv-$pkgver
  make test
}

package() {
  cd Text-Iconv-$pkgver
  make DESTDIR="$pkgdir" install
}
